// render->main: hamster\piggy\...
export const gEventHamster = "hamster";
export const gEventPiggy = "piggy";
export const gEventTonwebCreate = "createWallet";


export default class IpcParams {
  /**
   * 
   * @param {string} event event name
   * @param {Array | Object} params [param1, param2, ...] 或者 {a: "a"}
   * @param {Error} error 携带异常与自定义错误
   */
  constructor(event, params, error) {
    this.event = event;
    this.params = params;
    this.error = error
  }
}